import request from '@/utils/request'

// 查询户表档案列表
export function listTerminalsXbInfo(query) {
  return request({
    url: '/device/terminalsXbInfo/list',
    method: 'get',
    params: query
  })
}

export function getBoundTerminalsXb(query) {
  return request({
    url: '/device/terminalsXbInfo/getBoundTerminalsXb',
    method: 'get',
    params: query
  })
}

// 查询大表档案列表
export function getUnbindXbTerminals(query) {
  return request({
    url: '/device/terminalsXbInfo/getUnbindXbTerminals',
    method: 'get',
    params: query
  })
}

// 查询户表档案详细
export function getTerminalsXbInfo(ID) {
  return request({
    url: '/device/terminalsXbInfo/' + ID,
    method: 'get'
  })
}

// 新增户表档案
export function addTerminalsXbInfo(data) {
  return request({
    url: '/device/terminalsXbInfo',
    method: 'post',
    data: data
  })
}

// 批量挂接户表档案
export function batchBindTerminalsXbInfo(data) {
  return request({
    url: '/device/terminalsXbInfo/batchBindTerminalsXbInfo',
    method: 'post',
    data: data
  })
}

// 批量挂接户表档案
export function batchUnbindTerminalsXbInfo(data) {
  return request({
    url: '/device/terminalsXbInfo/batchUnbindTerminalsXbInfo',
    method: 'post',
    data: data
  })
}

// 修改户表档案
export function updateTerminalsXbInfo(data) {
  return request({
    url: '/device/terminalsXbInfo',
    method: 'put',
    data: data
  })
}

// 删除户表档案
export function delTerminalsXbInfo(ID) {
  return request({
    url: '/device/terminalsXbInfo/' + ID,
    method: 'delete'
  })
}
